home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / maclibunix / README < prev    next >
Encoding:
Text File  |  1994-05-06  |  1.9 KB  |  55 lines  |  [TEXT/R*ch]

  1. Here's source code for a library of routines for users of MPW C and
  2. THINK C (and possibly other C compilers) that makes it somewhat easier
  3. to port Unix programs, or at least to write Unix programs that are
  4. easily portable to the Macintosh.
  5.  
  6. More-or-less Unix-compatible routines currently provided by this package:
  7.     abort()
  8.     access()
  9.     chdir()
  10.     ctime()
  11.     getwd()
  12.     mkdir()
  13.     opendir(), readdir(), closedir()
  14.     perror()
  15.     rmdir()
  16.     stat()
  17.     sync()
  18.     time(), localtime()
  19.     
  20. Note: I've last used this with MPW version 2.0; MPW version 3.x may
  21. include most of these in its own library.  THINK C 5.0 includes
  22. several, but these are still needed: chdir(), getwd(), mkdir(),
  23. opendir() and friends, rmdir(), stat(), sync().  The same is true for
  24. THINK C 4.0 (you may have to tweak the source in minor ways to get it
  25. to compile there).
  26.  
  27. I've also included a routine to get the name of the boot volume, and a
  28. way to set a hook in MPW's open routine, which can be used to set the
  29. type of all files created to `TEXT'.  This was also last tested in MPW
  30. 2.0.
  31.  
  32. Finally, there are two simple example programs (a columnizing `ls' and
  33. `pwd', both to be run as MPW tools) and a Makefile.  Note that the
  34. Makefile contains non-ASCII characters and thus may be mangled by
  35. mailers; it should however be easy enough to reconstruct it if you know
  36. what an MPW Makefile should look like.
  37.  
  38. All routines work on MFS and HFS (but don't know about MFS folders); no
  39. guarantees for Mac SE and Mac II although I don't expect problems (most
  40. things I do are just file system calls).
  41.  
  42. I hope that the files are sufficiently commented, and moust routines are
  43. sufficiently well-known, that no additional documentation is necessary.
  44.  
  45. Being sick and tired of copyright wars I hereby place this code in the
  46. public domain, although it would still be nice if my name remained in
  47. redistributed or changed copies of the source.
  48.  
  49. Guido van Rossum
  50. CWI, dept. AA
  51. Kruislaan 413
  52. 1098 SJ  Amsterdam
  53.  
  54. E-mail: guido@cwi.nl
  55.